package com.game.service.define;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

import static com.game.service.define.RoomConfig.OutFilePath;

public class IniFileReader {
    public static void main(String[] args) {
        try {
            FileInputStream fileInputStream = new FileInputStream(OutFilePath+"\\Setting.ini");
            Properties properties = new Properties();
            properties.load(fileInputStream);
 
            for (String key : properties.stringPropertyNames()) {
                String value = properties.getProperty(key);
                // 处理键值对
                System.out.println("Key: " + key + ", Value: " + value);
            }
 
            fileInputStream.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}